package com.example.aop;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ProxyTest {
    public void test(){
        System.out.println("test!!!");
    }

    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("bean.xml");
//        Proxy proxy = applicationContext.getBean("proxy", Proxy.class);
        ProxyTest proxyTest = applicationContext.getBean("proxyTest", ProxyTest.class);
        proxyTest.test();
    }
}
